By default, all properties in ES6 classes are public, meaning they can be accessed from outside the class.
Public properties can be read or modified from outside the class
Private properties are restricted to the scope of the class and cannot be accessed directly from outside. As of ES2021, private properties can be created using the prefix.
They can only be accessed or modified inside the class where they are defined. Attempting to access them directly outside the class results in an error.
Static properties belong to the class itself, rather than instances of the class. They can be accessed directly on the class without creating an instance.
They are shared among all instances and cannot be accessed via (unless from the class itself).